<%-- 
    Document   : header
    Created on : 23/03/2011, 16:47:10
    Author     : cristiane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<table style="text-align: left; width: 100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FAFAD2">
    <%
        if ((((session.getAttribute("logado"))!= null) && ((Boolean)session.getAttribute("logado")))) {
%>
<tr>
    <td style="vertical-align: top;">
        <b>Bem-Vindo <%=session.getAttribute("usuario")%>!</b>
    </td>
    <td style="vertical-align: top; text-align: right">
        <a href="ImobiliariaServlet?cmd=logout">Sair</a>
    </td>
<%     }else{

%>
<tr><td style="vertical-align: top;">
        <b>Bem-Vindo Visitante!</b>
    </td>
    <td style="vertical-align: top; text-align: right">
        <a href="login.jsp">Logar</a>
    </td>
<% 
        }
%> 

</tr>
</table>
